package wwl.lsf.剑指offer;

/**
 * @Title
 * @Author wangwenliang
 * @Date 2020/5/29
 * @Description
 */
public class 替换空格 {
    public static void main(String[] args) {

        String s = "We are happy.";
        System.out.println("replaceSpace(s) = " + replaceSpace(s));
    }

    public static String replaceSpace(String s) {

        return s.replace(" ", "%20");
    }
}
